package cn.s1995.sloth.bizs.entity;

import cn.s1995.sloth.bizs.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 订单地址
 *
 * @author sloth
 * @date 2023-12-15 15:28:42
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单地址")
@TableName("biz_order_address")
public class OrderAddress extends BaseEntity {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private Long id;

	/**
	* 用户id
	*/
    @Schema(description = "用户id")
    private Long uid;

	/**
	* 收货人
	*/
    @Schema(description = "收货人")
    private String receiver;

	/**
	* 国家码
	*/
    @Schema(description = "国家码")
    private Integer code;

	/**
	* 收货人手机号码
	*/
    @Schema(description = "收货人手机号码")
    private String phone;

	/**
	* 邮编
	*/
    @Schema(description = "邮编")
    private String postalCode;

	/**
	 * 国家
	 */
	@Schema(description = "国家")
	private String country;

	/**
	* 省code
	*/
    @Schema(description = "省code")
    private String provinceCode;

	/**
	* 市code
	*/
    @Schema(description = "市code")
    private String cityCode;

	/**
	* 区code
	*/
    @Schema(description = "区code")
    private String areaCode;

	/**
	* 省
	*/
    @Schema(description = "省")
    private String province;

	/**
	* 市
	*/
    @Schema(description = "市")
    private String city;

	/**
	* 区
	*/
    @Schema(description = "区")
    private String area;

	/**
	* 街道
	*/
    @Schema(description = "街道")
    private String street;

	/**
	* 详细地址
	*/
    @Schema(description = "详细地址")
    private String address;

	/**
	* 经度
	*/
    @Schema(description = "经度")
    private BigDecimal longitude;

	/**
	* 纬度
	*/
    @Schema(description = "纬度")
    private BigDecimal latitude;
}
